package com.hualan.sfzyproject.mapper;

import com.hualan.sfzyproject.domain.PsyQuestion;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface PsyQuestionMapper {

    List<PsyQuestion> selectAll();
    PsyQuestion selectByQuestionId(Integer questionId);
    int insert(@RequestParam("title") String title,
               @RequestParam("userId") Integer userId,
               @RequestParam("content") String content);

    List<PsyQuestion> selectByLike(String like);
    int deleteByQuestionId(int questionId);


}
